package com.ews.onlineexchange.model;


import javax.persistence.Entity;
import javax.validation.constraints.NotNull;

/**
 * @author taylover
 * 公告重选 废弃记录
 * 当为随机选取时，重选时，保存上次中选的中介
 */
@Entity
public class BulletinDiscardRecord extends DataEntity{

	private static final long serialVersionUID = 1L;	
	private String 	bulletinId;
	private String 	reason;
	private String 	formerSupplierId;
	private String 	formerSupplierName;
	private String  successSupplierId;
	private String  successSupplierName;
	
	@NotNull
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	
	@NotNull
	public String getBulletinId() {
		return bulletinId;
	}
	public void setBulletinId(String bulletinId) {
		this.bulletinId = bulletinId;
	}
	
	@NotNull
	public String getFormerSupplierId() {
		return formerSupplierId;
	}
	public void setFormerSupplierId(String formerSupplierId) {
		this.formerSupplierId = formerSupplierId;
	}
	
	@NotNull
	public String getFormerSupplierName() {
		return formerSupplierName;
	}
	public void setFormerSupplierName(String formerSupplierName) {
		this.formerSupplierName = formerSupplierName;
	}
	
	public String getSuccessSupplierId() {
		return successSupplierId;
	}
	public void setSuccessSupplierId(String successSupplierId) {
		this.successSupplierId = successSupplierId;
	}
	public String getSuccessSupplierName() {
		return successSupplierName;
	}
	public void setSuccessSupplierName(String successSupplierName) {
		this.successSupplierName = successSupplierName;
	}
	
	
	
//	@OneToOne
//	public Trade getFormerTrade() {
//		return formerTrade;
//	}
//	public void setFormerTrade(Trade formerTrade) {
//		this.formerTrade = formerTrade;
//	}
//	@OneToOne
//	public Trade getSuccessTrade() {
//		return successTrade;
//	}
//	public void setSuccessTrade(Trade successTrade) {
//		this.successTrade = successTrade;
//	}
	
	
	
}
